#include "StdAfx.h"
#include "Time.h"
#include <mmsystem.h>

double Time::sm_dDelta = 0.0f;
double Time::sm_dLastUpdate = timeGetTime();

DWORD Time::Now()
{
	return timeGetTime();
}

double Time::Delta()
{
	return sm_dDelta;
}

void Time::Update()
{
	double dNow = Now();

	sm_dDelta = (float)((dNow - sm_dLastUpdate) * 0.001f);
	sm_dLastUpdate = dNow;
}
